package leetcode

func containsDuplicate(nums []int) bool {
	numMap := make(map[int]any)
	for _, item := range nums {
		if _, ok := numMap[item]; ok {
			return true
		}
		numMap[item] = nil
	}
	return false
}
